#!/bin/bash

rm -rf /opt/project/houxin/services/houxin-obu/houxin-admin/houxin-admin-biz.jar

mvn clean install  -f  /opt/project/houxin/services/houxin-obu/houxin-admin/houxin-admin-api/pom.xml

mvn clean package -f  /opt/project/houxin/services/houxin-obu/houxin-admin/houxin-admin-biz/pom.xml

cp    /opt/project/houxin/services/houxin-obu/houxin-admin/houxin-admin-biz/target/houxin-admin-biz.jar /opt/project/houxin/services/houxin-obu/houxin-admin
rsync -av /opt/project/houxin/services/houxin-obu/houxin-admin/{Dockerfile,admin-start.sh,houxin-admin-biz.jar}  houxin:/opt/project/houxin/houxin-admin/

ssh   root@houxin  "
 cd /opt/project/houxin/houxin-admin

 chmod +x  admin-start.sh

 ./admin-start.sh

"

